
<script type="text/javascript">
    try{ace.settings.check('sidebar' , 'fixed')}catch(e){}
</script>

<div class="sidebar-shortcuts" id="sidebar-shortcuts">
    <div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large">
        <button class="btn btn-success">
            <i class="ace-icon fa fa-signal"></i>
        </button>

        <button class="btn btn-info">
            <i class="ace-icon fa fa-pencil"></i>
        </button>

        <!-- #section:basics/sidebar.layout.shortcuts -->
        <button class="btn btn-warning">
            <i class="ace-icon fa fa-users"></i>
        </button>

        <button class="btn btn-danger">
            <i class="ace-icon fa fa-cogs"></i>
        </button>

        <!-- /section:basics/sidebar.layout.shortcuts -->
    </div>

    <div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
        <span class="btn btn-success"></span>

        <span class="btn btn-info"></span>

        <span class="btn btn-warning"></span>

        <span class="btn btn-danger"></span>
    </div>
</div><!-- /.sidebar-shortcuts -->

<ul class="nav nav-list">

     <li class="active open hsub" ng-repeat="p in user_privileges">
        <a href="#" class="dropdown-toggle">
            <i class="menu-icon fa fa-desktop"></i>
            <span class="menu-text"> {{p.name}} </span>
            <b class="arrow fa fa-angle-down"></b>
        </a>
        <b class="arrow"></b>
        <ul class="submenu">
            <li ng-repeat="c in p.children">
                <a ui-sref="{{c.url}}">
                    <i class="menu-icon fa fa-caret-right"></i>
                    {{c.name}}
                </a>
                <b class="arrow"></b>
            </li>
        </ul>
    </li>
    <!--<li class="active open hsub">-->
        <!--<a href="#" class="dropdown-toggle">-->
            <!--<i class="menu-icon fa fa-desktop"></i>-->
            <!--<span class="menu-text"> 权限管理 </span>-->
            <!--<b class="arrow fa fa-angle-down"></b>-->
        <!--</a>-->
        <!--<b class="arrow"></b>-->
        <!--<ul class="submenu">-->
            <!--<li>-->
                <!--<a ui-sref=".">-->
                    <!--<i class="menu-icon fa fa-caret-right"></i>-->
                    <!--用户管理-->
                <!--</a>-->
                <!--<b class="arrow"></b>-->
            <!--</li>-->
            <!--<li>-->
                <!--<a ui-sref=".role">-->
                    <!--<i class="menu-icon fa fa-caret-right"></i>-->
                    <!--角色管理-->
                <!--</a>-->
                <!--<b class="arrow"></b>-->
            <!--</li>-->
            <!--<li>-->
                <!--<a ui-sref=".privilege">-->
                    <!--<i class="menu-icon fa fa-caret-right"></i>-->
                    <!--菜单管理-->
                <!--</a>-->
                <!--<b class="arrow"></b>-->
            <!--</li>-->
        <!--</ul>-->
    <!--</li>-->
    <!--<li class="hsub">-->
        <!--<a href="#" class="dropdown-toggle">-->
            <!--<i class="menu-icon  glyphicon  glyphicon-book"></i>-->
            <!--<span class="menu-text"> 文章管理 </span>-->
            <!--<b class="arrow fa fa-angle-down"></b>-->
        <!--</a>-->
        <!--<b class="arrow"></b>-->
        <!--<ul class="submenu">-->
             <!--<li>-->
                <!--<a ui-sref=".article">-->
                    <!--<i class="menu-icon fa fa-caret-right"></i>-->
                    <!--文章管理-->
                <!--</a>-->
            <!--</li>-->
            <!--<li>-->
                <!--<a ui-sref=".column">-->
                    <!--<i class="menu-icon fa fa-caret-right"></i>-->
                    <!--栏目管理-->
                <!--</a>-->
            <!--</li>-->
        <!--</ul>-->
    <!--</li>-->



</ul><!-- /.nav-list -->

<!-- #section:basics/sidebar.layout.minimize -->
<div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse">
    <i class="ace-icon fa fa-angle-double-left" data-icon1="ace-icon fa fa-angle-double-left" data-icon2="ace-icon fa fa-angle-double-right"></i>
</div>

<!-- /section:basics/sidebar.layout.minimize -->
<script type="text/javascript">
    try{ace.settings.check('sidebar' , 'collapsed')}catch(e){}
</script>

